<!--src/components/Tags.vue -->
<template>
  <a-tabs v-model="active" :type="type" @tab-click="handleClick">
    <a-tab-pane v-for="item in tabs" :key="item.id" :name="item.name" :label="item.label"></a-tab-pane>
    <transition name="component-fade" mode="out-in">
      <keep-alive>
        <slot :item="currentTab"></slot>
      </keep-alive>
    </transition>
  </a-tabs>
</template>